---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/jesse/Dropbox/Ohio-HallResearch/Code/replication/table_a11.log
  log type:  text
 opened on:  11 Jun 2020, 14:05:37

. 
. ** Trump recent foreclosures, with no county population weights
. 
. use "$path/foreclosures_analysis.dta", clear

. 
. gen trump = year == 2016

. gen fore_trump = foreclosure_rate*trump

. gen competitive = norm_vote > 0.4 & norm_vote < 0.6

. 
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe pres_vs foreclosure_rate_six fore_trump trump, a(fips sy) cluster(fips)
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      8,973
Absorbing 2 HDFE groups                         Replications      =      1,000
                                                Wald chi2(3)      =      72.65
                                                Prob > chi2       =     0.0000
                                                R-squared         =     0.9702
                                                Adj R-squared     =     0.9567
                                                Root MSE          =     3.1187

                                        (Replications based on 2,609 clusters in fips)
--------------------------------------------------------------------------------------
                     |   Observed   Bootstrap                         Normal-based
             pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
---------------------+----------------------------------------------------------------
foreclosure_rate_six |  -.5245288   .0675969    -7.76   0.000    -.6570164   -.3920413
          fore_trump |  -.5312901   .1117822    -4.75   0.000    -.7503792    -.312201
               trump |     -86421   337751.6    -0.26   0.798    -748402.1    575560.1
--------------------------------------------------------------------------------------

Absorbed degrees of freedom:
-----------------------------------------------------------------------+
         Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
---------------------+-------------------------------------------------|
                fips |            0            2609           2609 *   | 
                  sy |          195             196              1     | 
-----------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computation

. local b1 = _b[foreclosure_rate_six]

. local se1 = _se[foreclosure_rate_six]

. local bint1 = _b[fore_trump]

. local seint1 = _se[fore_trump]

. local n1 = e(N)

. local nclust1 = e(N_clust)

. 
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe pres_vs foreclosure_rate_six fore_trump trump, a(fips popyear) cluster(fips)
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      8,977
Absorbing 2 HDFE groups                         Replications      =      1,000
                                                Wald chi2(3)      =      18.03
                                                Prob > chi2       =     0.0004
                                                R-squared         =     0.9577
                                                Adj R-squared     =     0.9399
                                                Root MSE          =     3.6840

                                        (Replications based on 2,610 clusters in fips)
--------------------------------------------------------------------------------------
                     |   Observed   Bootstrap                         Normal-based
             pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
---------------------+----------------------------------------------------------------
foreclosure_rate_six |  -.2198117   .0621135    -3.54   0.000    -.3415519   -.0980715
          fore_trump |  -.2643956   .0923396    -2.86   0.004    -.4453779   -.0834134
               trump |   30989.13   117153.8     0.26   0.791      -198628    260606.3
--------------------------------------------------------------------------------------

Absorbed degrees of freedom:
-----------------------------------------------------------------------+
         Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
---------------------+-------------------------------------------------|
                fips |            0            2610           2610 *   | 
             popyear |           39              40              1     | 
-----------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computation

. local b2 = _b[foreclosure_rate_six]

. local se2 = _se[foreclosure_rate_six]

. local bint2 = _b[fore_trump]

. local seint2 = _se[fore_trump]

. local n2 = e(N)

. local nclust2 = e(N_clust)

. 
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe pres_vs foreclosure_rate_six fore_trump trump, a(i.fips##c.year sy) cluster(fips)
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      8,973
Absorbing 2 HDFE groups                         Replications      =      1,000
                                                Wald chi2(3)      =      56.78
                                                Prob > chi2       =     0.0000
                                                R-squared         =     0.9935
                                                Adj R-squared     =     0.9837
                                                Root MSE          =     1.9122

                                        (Replications based on 2,609 clusters in fips)
--------------------------------------------------------------------------------------
                     |   Observed   Bootstrap                         Normal-based
             pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
---------------------+----------------------------------------------------------------
foreclosure_rate_six |  -.2234324   .0549276    -4.07   0.000    -.3310885   -.1157763
          fore_trump |  -.7825426   .1104157    -7.09   0.000    -.9989535   -.5661317
               trump |   15415.18    25607.6     0.60   0.547     -34774.8    65605.16
--------------------------------------------------------------------------------------

Absorbed degrees of freedom:
-----------------------------------------------------------------------+
         Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
---------------------+-------------------------------------------------|
                fips |            0            2609           2609 *   | 
         fips#c.year |         2609            2609              0 ?   | 
                  sy |          195             196              1     | 
-----------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = fixed effect nested within cluster; treated as redundant for DoF computation

. local b3 = _b[foreclosure_rate_six]

. local se3 = _se[foreclosure_rate_six]

. local bint3 = _b[fore_trump]

. local seint3 = _se[fore_trump]

. local n3 = e(N)

. local nclust3 = e(N_clust)

. 
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe pres_vs foreclosure_rate_six fore_trump trump, a(i.fips##c.year popyear) cluster(fips)
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
.......................................x..........   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
........................................x.........   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      8,977
Absorbing 2 HDFE groups                         Replications      =        998
                                                Wald chi2(3)      =      16.88
                                                Prob > chi2       =     0.0007
                                                R-squared         =     0.9867
                                                Adj R-squared     =     0.9679
                                                Root MSE          =     2.6941

                                        (Replications based on 2,610 clusters in fips)
--------------------------------------------------------------------------------------
                     |   Observed   Bootstrap                         Normal-based
             pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
---------------------+----------------------------------------------------------------
foreclosure_rate_six |  -.2547216    .065678    -3.88   0.000    -.3834481   -.1259952
          fore_trump |  -.2455937    .108016    -2.27   0.023    -.4573012   -.0338862
               trump |  -5340.236   109611.3    -0.05   0.961    -220174.4    209493.9
--------------------------------------------------------------------------------------

Absorbed degrees of freedom:
-----------------------------------------------------------------------+
         Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
---------------------+-------------------------------------------------|
                fips |            0            2610           2610 *   | 
         fips#c.year |         2610            2610              0 ?   | 
             popyear |           39              40              1     | 
-----------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = fixed effect nested within cluster; treated as redundant for DoF computation
Note: One or more parameters could not be estimated in 2 bootstrap replicates;
      standard-error estimates include only complete replications.

. local b4 = _b[foreclosure_rate_six]

. local se4 = _se[foreclosure_rate_six]

. local bint4 = _b[fore_trump]

. local seint4 = _se[fore_trump]

. local n4 = e(N)

. local nclust4 = e(N_clust)

. 
. log close
      name:  <unnamed>
       log:  /Users/jesse/Dropbox/Ohio-HallResearch/Code/replication/table_a11.log
  log type:  text
 closed on:  11 Jun 2020, 14:22:47
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
